        <script type="text/javascript" src="<?php echo $js_dir; ?>jquery.js"></script>
        <script type="text/javascript" src="<?php echo $js_dir; ?>bootstrap.min.js"></script>
        <script type="text/javascript" src="<?php echo $js_dir; ?>jquery.smooth-scroll.min.js"></script>
        <script type="text/javascript" src="<?php echo $js_dir; ?>jquery.tinycircleslider.min.js"></script>
        <script type="text/javascript" src="<?php echo $js_dir; ?>showup.js"></script>
        <script type="text/javascript">
            
            $(document).ready(function(){
                
               $('a.scroller').smoothScroll();
                
                $().showUp('.top', {
                
                });
                
                disable_scroll();
                    
                $('#rotatescroll').tinycircleslider({ interval: true, dotsSnap: true, interval:true, intervalTime:3000 });
                
                $("#submit-app").on('submit',function(e){
                    $(".error").hide();
                    if($("input[name='name']").val() == "")
                    {
                        e.preventDefault();
                        $("p[rel='name']").html("Name Field is Required");
                        $("p[rel='name']").show();
                    }
                    if($("input[name='academic_institution']").val() == "")
                    {
                        e.preventDefault();
                        $("p[rel='academic_institution']").html("Academic Institution Field is Required");
                        $("p[rel='academic_institution']").show();
                    }
                    if($("input[name='email']").val() == "")
                    {
                        e.preventDefault();
                        $("p[rel='email']").html("Email Address Field is Required");
                        $("p[rel='email']").show();
                    }
                    else if(!validateEmail($("input[name='email']").val()))
                    {
                        e.preventDefault();
                        $("p[rel='email']").html("Please enter a valid email address.");
                        $("p[rel='email']").show();
                    }
                    if($("input[name='contact']").val() == "")
                    {
                        e.preventDefault();
                        $("p[rel='contact']").html("Contact Number Field is Required.");
                        $("p[rel='contact']").show();
                    }
                    else if(isNaN($("input[name='contact']").val()) || $("input[name='contact']").val().length < 7)
                    {

                        e.preventDefault();
                        $("p[rel='contact']").html("Enter a valid contact number atleast 7 digits long.");
                        $("p[rel='contact']").show();
                    }
                    if($("textarea[name='address']").val() == "")
                    {
                        e.preventDefault();
                        $("p[rel='address']").html("Address Field is Required");
                        $("p[rel='address']").show();
                    }
                    if($("textarea[name='message']").val() == "")
                    {
                        e.preventDefault();
                        $("p[rel='message']").html("Email Address Field is Required");
                        $("p[rel='message']").show();
                    }
                    
                    
                    
                    
                    
                   
                    
                });
                
            });
            
            // left: 37, up: 38, right: 39, down: 40,
            // spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36
            var keys = [37, 38, 39, 40];

            function preventDefault(e) {
              e = e || window.event;
              if (e.preventDefault)
                  e.preventDefault();
              e.returnValue = false;  
            }

            function keydown(e) {
                for (var i = keys.length; i--;) {
                    if (e.keyCode === keys[i]) {
                        preventDefault(e);
                        return;
                    }
                }
            }

            function wheel(e) {
              preventDefault(e);
            }

            function disable_scroll() {
              if (window.addEventListener) {
                  window.addEventListener('DOMMouseScroll', wheel, false);
              }
              window.onmousewheel = document.onmousewheel = wheel;
              document.onkeydown = keydown;
            }

            function enable_scroll() {
                if (window.removeEventListener) {
                    window.removeEventListener('DOMMouseScroll', wheel, false);
                }
                window.onmousewheel = document.onmousewheel = document.onkeydown = null;  
            }
            
            
            
            function validateEmail(email) { 
                var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
                return re.test(email);
            }  
        
        </script>
    </body>
</html>